import request from '@/utils/request.js'

const chapterHost = '/eduservice/chapter'

export default {

    
    getAllChapterVo(courseId){
        return new request({
            url:`${chapterHost}/getAll/${courseId}`,
            method:"get",
        })
    },
    saveChapter(chapter){
        return new request({
            url:`${chapterHost}/save`,
            method:"post",
            data:chapter
        })
    },
    updateChapter(chapter){
        return new request({
            url:`${chapterHost}/update`,
            method:"post",
            data:chapter
        })
    },
    getChapter(chapterId){
        return new request({
            url:`${chapterHost}/getChapter/${chapterId}`,
            method:"get"
        })
    },
    deleteChapter(chapterId){
        return new request({
            url:`${chapterHost}/delete/${chapterId}`,
            method:"post"
        })
    },
    // uploadVideo(){

    // }
    


}